package com.example.graphicslib.test;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.graphicslib.R;
import com.example.graphicslib.utils.Constants;

/**
 * Created by Tatev on 13/4/2014.
 */
public class MovementAnimationOptionsActivity extends Activity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_movement);

        vel = (Button)findViewById(R.id.velBtn);
        acc = (Button)findViewById(R.id.accBtn);
        coord = (Button)findViewById(R.id.coordBtn);

        vel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MovementAnimationOptionsActivity.this, ParamSetActivity.class);
                intent.putExtra(Constants.TYPE, Constants.VELOCITY);
                startActivity(intent);
            }
        });
        acc.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MovementAnimationOptionsActivity.this, ParamSetActivity.class);
                intent.putExtra(Constants.TYPE, Constants.ACCELERATION);
                startActivity(intent);
            }
        });
        coord.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MovementAnimationOptionsActivity.this, ParamSetActivity.class);
                intent.putExtra(Constants.TYPE, Constants.COORDS);
                startActivity(intent);
            }
        });
    }


    Button vel, acc, coord;
}
